package com.xbq.exceleditor.ui

import android.os.Bundle
import com.gyf.immersionbar.ktx.immersionBar
import com.xbq.exceleditor.R
import com.xbq.exceleditor.databinding.ActivityHelpAndKefuBinding
import com.xbq.xbqsdk.XbqSdk
import com.xbq.xbqsdk.component.activity.VBActivity
import com.xbq.xbqsdk.core.ui.XbqWebviewActivity
import com.xbq.xbqsdk.util.click.onDebouncedClick
import dagger.hilt.android.AndroidEntryPoint

/**
 * Author: liaohaiping
 * Time: 2020-10-30
 * Description:
 */
@AndroidEntryPoint
class HelpAndKefuActivity : VBActivity<ActivityHelpAndKefuBinding>() {
    //    val viewModel by viewModel<AboutViewModel>()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding.adview.init("helpandkefu",this)
        immersionBar {
            fitsSystemWindows(true,R.color.bg)
            statusBarDarkFont(true)
        }

        binding.btnBack.onDebouncedClick { finish() }
        binding.btnUserAgreement.onDebouncedClick { XbqSdk.startUserAgreement(this) }
        binding.btnContactKefu.onDebouncedClick { XbqWebviewActivity.startWebUrl("常见问题","https://api.dzxiaoshipin.com/xbqstatic/xcws/faq.html",false) }
    }
}